<?php $__env->startSection('web_title','添加预约'); ?>

<?php $__env->startSection('css'); ?>
    <link href="<?php echo e(asset('css/addReservation.css')); ?>" rel="stylesheet">
    <link href="<?php echo e(asset('css/main.css')); ?>" rel="stylesheet">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <!--内容区域-->
    <div class="row">
        <div class="col-xs-12 content-box">
            <!--填充内容区域-->
            <div class="row">
                <div class="col-xs-12">
                    <div class="ibox float-e-margins bespeakPatient">
                        <div class="ibox-title base-message">
                            <h5>添加患者预约</h5>
                        </div>
                        <div class="ibox-content">
                            <form class="form-horizontal" id="addReservationForm">
                                <input type="hidden" name="patient_id" value="<?php echo e($patient->id); ?>">
                                <div class="row base-message-input">
                                    <div class="col-xs-3 input_div">
                                        <span class="input-title">姓名</span>
                                        <input type="text" value="<?php echo e($patient->name); ?>" class="form-control but_Fonts" name="name" disabled>
                                    </div>
                                    <div class="col-xs-3 input_div">
                                        <span class="input-title">性别</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="sex" disabled>
                                            <option><?php echo e($patient->sex['value']); ?></option>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 input_div">
                                        <span class="input-title">出生日期</span>
                                        <input type="text" value="<?php echo e($patient->birthday); ?>" class="form-control but_Fonts" name="birthday" disabled>
                                    </div>
                                    <div class="col-xs-3 input_div">
                                        <span class="input-title">手机号码</span>
                                        <input type="number" value="<?php echo e($patient->phone); ?>" class="form-control but_Fonts" name="phone" disabled>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title">预约医院</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="hospital_id">
                                            <?php if($hospitals instanceof \Illuminate\Database\Eloquent\Collection): ?>
                                                <?php $__currentLoopData = $hospitals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $hospital): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($hospital->id); ?>"><?php echo e($hospital->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php else: ?>
                                                <option value="<?php echo e($hospitals->id); ?>"><?php echo e($hospitals->name); ?></option>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title">预约医生</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="doctor_id">
                                            <?php if($doctors instanceof \Illuminate\Database\Eloquent\Collection): ?>
                                                <?php $__currentLoopData = $doctors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $doctor): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <option value="<?php echo e($doctor->id); ?>"><?php echo e($doctor->name); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            <?php else: ?>
                                                <option value="<?php echo e($doctors->id); ?>"><?php echo e($doctors->name); ?></option>
                                            <?php endif; ?>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title"><i class="mandatory"></i>预约日期</span>
                                        <input type="text" class="form-control limitStartData but_Fonts" id="reservationDateInput" data-toggle="datepicker" placeholder="请输入预约日期" name="time">
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title"><i class="mandatory"></i>诊室号</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="room">
                                            
                                                
                                            
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title"><i class="mandatory"></i>时间段</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="am">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title"><i class="mandatory"></i>时间</span>
                                        <select class="form-control m-b margin-bottom-0 but_Fonts" name="section">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title">预约内容</span>
                                        <input type="text" placeholder="请输入预约内容" class="form-control but_Fonts" name="purpose" maxlength="255">
                                    </div>
                                    <div class="col-xs-3 margin-top-15 input_div">
                                        <span class="input-title">备注</span>
                                        <input type="text" placeholder="请输入备注" class="form-control but_Fonts" name="remark" maxlength="255">
                                    </div>

                                </div>
                            </form>
                            <div class="row">
                                <div class="col-xs-12 text-right margin-top-20">
                                    <button type="button" class="btn btn-primary btn-lg margin-right-15 but_Fonts" id="addReservationSave" data-url="<?php echo e(route('reservation.platform')); ?>">保存</button>
                                    <button type="button" class="btn btn-primary btn-lg btn-outline but_Fonts" id="addReservationClose" data-url="<?php echo e(route('manage.view.index')); ?>">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
    <!--添加预约 单独文件  1-->
    <script src="<?php echo e(asset('js/addReservation.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>